package com.rabbit.eap.framework.common.controller;

import com.rabbit.eap.common.utils.UUIDUtil;
import com.rabbit.eap.framework.log.annotation.OperationLogIgnore;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @projectName eap
 * @packageName com.rabbit.eap.framework.common.controller
 * @className CsrfController
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/4/21 16:49
 * <p>Description: CsrfController
 * CSRF 供swagger调用
 * </p>

 */
@ApiIgnore
@OperationLogIgnore
@RestController
public class CsrfController {
    @RequestMapping(value = "/csrf", method = {RequestMethod.GET, RequestMethod.POST,RequestMethod.PUT,RequestMethod.DELETE})
    public String csrf() {
        return UUIDUtil.getUuid();
    }
}
